<?php defined('SYSPATH') or die('No direct script access.'); ?>

<h1> Login</h1>
<?php if(! empty($error) ):?>
<div class="error">
<?php echo $error;?>
</div>
<?php endif;?>
<table>
<?php echo Form::open('user/login');?>
<tr>
<td><?php echo Form::label('username'); ?></td>
<td><?php echo Form::input('username');?></td>
</tr>
<tr>
<td><?php echo Form::label('password');?></td>
<td><?php echo Form::password('password');?> </td>
</tr>
</table>
<?php echo Form::submit('submit','Login');?>
<?php echo Form::close();?>
